package com.atguigu.common.exception;


public class NoStockWareException extends RuntimeException{
    String msg;
    int code;
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    /**
     * Constructs a new runtime exception with {@code null} as its
     * detail message.  The cause is not initialized, and may subsequently be
     * initialized by a call to {@link #initCause}.
     */
    public NoStockWareException(String msg, int code) {
        super("商品库存不足异常");
    }
}
